import componentConfig from '@/utils/config.view.router';

export default {
  path: '/user',
  hidden: true,
  meta: {
    title: '我的',
    index: 1, // 路由层级
  },
  component: componentConfig.user,
  children: [
    {
      name: 'user',
      path: '',
      hidden: true,
      meta: {
        title: '我的',
        index: 2,
      },
      component: () => import('@/views/user/user'),
    },
    {
      path: 'vip',
      name: 'user-vip',
      meta: {
        title: '会员中心',
        index: 3,
      },
      component: () => import('@/views/user/vip'),
    },
    {
      path: 'account',
      name: 'user-account',
      meta: {
        title: '账户管理',
        index: 3,
      },
      component: () => import('@/views/user/account'),
    },
    {
      path: 'account/bind-phone',
      name: 'bind-phone',
      meta: {
        title: '绑定手机号',
        index: 4,
      },
      component: () => import('@/views/user/bind-phone'),
    },
    {
      path: 'account/change-phone',
      name: 'change-phone',
      meta: {
        title: '更新手机',
        index: 5,
      },
      component: () => import('@/views/user/change-phone'),
    },
    {
      path: 'account/change-password',
      name: 'change-password',
      meta: {
        title: '忘记密码',
        index: 4,
      },
      component: () => import('@/views/user/change-password'),
    },
    {
      path: 'setup',
      name: 'user-setup',
      meta: {
        title: '设置',
        index: 3,
      },
      component: () => import('@/views/user/setup'),
    },
    {
      path: 'msg',
      name: 'user-msg',
      meta: {
        title: '消息',
        index: 3,
      },
      component: () => import('@/views/user/msg-list'),
    },
    {
      path: 'msg-detail',
      name: 'user-msg-detail',
      meta: {
        title: '消息',
        index: 4,
      },
      component: () => import('@/views/user/msg-detail'),
    },
    {
      path: 'wallet',
      name: 'user-wallet',
      meta: {
        title: '我的钱包',
        index: 3,
      },
      component: () => import('@/views/user/wallet'),
    },
    {
      path: 'wallet/cash-out',
      name: 'user-cash-out',
      meta: {
        title: '提现',
        index: 4,
      },
      component: () => import('@/views/user/cash-out/cash-out'),
    },
    {
      path: 'wallet/cash-ali',
      name: 'user-cash-ali',
      meta: {
        title: '支付宝提现',
        index: 5,
      },
      component: () => import('@/views/user/cash-out/cash-ali'),
    },
    {
      path: 'wallet/cash-result',
      name: 'user-cash-result',
      meta: {
        title: '提现结果',
        index: 6,
      },
      component: () => import('@/views/user/cash-out/cash-result'),
    },
    {
      path: 'wallet/cash-log',
      name: 'user-cash-log',
      meta: {
        title: '提现记录',
        index: 7,
      },
      component: () => import('@/views/user/cash-out/cash-log'),
    },
    {
      path: 'report',
      name: 'user-report',
      meta: {
        title: '在线反馈',
        index: 3,
      },
      component: () => import('@/views/user/report'),
    },
    {
      path: 'about',
      name: 'user-about',
      meta: {
        title: '关于我们',
        index: 3,
      },
      component: () => import('@/views/user/about'),
    },
  ]
};
